package com.cloudeggtech.granite.chat;

import android.app.Application;

import com.cloudeggtech.chalk.core.stream.StandardStreamConfig;
import com.cloudeggtech.granite.chat.cache.CacheManager;
import com.cloudeggtech.granite.sdk.GIMManager;

/**
 * Created by david on 17/10/26.
 */

public class MyApplication extends Application {
//    static {
//        System.setProperty("basalt.protocol.format","json");
//    }

    @Override
    public void onCreate() {
        super.onCreate();
        AppProperties.initialize(getApplicationContext());
        CacheManager.init(getApplicationContext());
        GIMManager.init(new StandardStreamConfig(AppProperties.CONFIG.XMPP_SERVER, AppProperties.CONFIG.XMPP_PORT));
    }
}
